package com.automannn.atm_back.common.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

/**
 * @author chenkh
 * @time 2020/7/14 23:51
 */
@Data
public class PageBean implements Serializable {
    private static final long serialVersionUID = 1;
    private Long pageNum;

    private Long pageSize;

    public Page toPage(){
        return  new Page(pageNum,pageSize);
    }
}
